Developer Documentation

QuickTime 4 API Documentation

Wired Movies and Sprites

| Previous | Chapter Contents | Chapter Top | Next |

Actions for All Tracks

Constant descriptions

kActionTrackSetCursor
Supported Flags: none Parm1: [QTAtomID cursorID] This sets the cursor to the one specified by cursorID . Note that the target is a track. This is because tracks may supply their own custom cursors. You set the cursor ID as follows: cursorID = 0 Set the cursor to the system default cursor. cursorID (1..1000) You set the cursor to a built-in QuickTime cursor. You use values from this enumeration in Movies.h .


enum {
    kQTCursorOpenHand       = 128,
    kQTCursorClosedHand     = 129,
    kQTCursorPointingHand   = 130,
    kQTCursorRightArrow     = 131,
    kQTCursorLeftArrow      = 132,
    kQTCursorDownArrow      = 133,
    kQTCursorUpArrow        = 134
};

cursorID > 1000
You set the cursor to one included in the movie. Specifically, it is included in the target track's MediaPropertiesAtom atomdata. This is an atom of type 'crsr' with an atom ID corresponding to the desired cursor ID (greater than 1000). The atom's data is simply a Macintosh 'crsr' resource. On Windows, a black-and-white version is currently used.

kActionTrackSetGraphicsMode
Supported Flags: none Parm1: [ModifierTrackGraphicsModeRecord graphicsMode] Sets a spatial track's graphics mode to the one specified.

kActionSendQTEventToTrackObject
Supported Flags: none Parm1: [[(TrackObjectTargetAtoms)] trackTarget] Parm2: [QTEventRecord theEvent] Similar to kActionSendQTEventToSprite , but applies to any wired media handler that contains track objects such as Sprite, Text, and QuickDraw 3D. This lets you send standard or custom events to track objects.


© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |